package entity;

import java.util.List;

/**
 * Created by Mr.xingkong on 2016/1/12.
 */
public class HotSaleEntity
{

    /**
     * code : 1000
     * msg : 请求成功
     * data : {"page":0,"pageSize":11,"itemCount":99,"pList":[{"productId":11483,"freight":700,"freightStr":"7.00","stock":1,"title":"日本进口 皮卡丘杯面 海鲜味38g","imgUrl":"http://img02.taotaosou.cn/size/image16/M09/00/7E/CgAAQFZyMZkIAAAAAAHysj_610wAAPqsAPv1a4AAfLK446.jpg","price":1790,"priceStr":"17.90","originalPrice":2680,"originalPriceStr":"26.80","salesVolume":4,"isNew":0,"isHot":1},{"productId":11488,"freight":700,"freightStr":"7.00","stock":7,"title":"费列罗 拉斐尔椰蓉扁桃仁糖果酥球  15粒装","imgUrl":"http://img03.taotaosou.cn/size/image16/M07/00/6B/CgAAQFZubuYIAAAAAATUauf-JUMAAPjLwBAv3oABNSC058.jpg","price":3300,"priceStr":"33.00","originalPrice":3900,"originalPriceStr":"39.00","salesVolume":2,"isNew":1,"isHot":0},{"productId":11490,"freight":700,"freightStr":"7.00","stock":0,"title":"日本 桃哈多 圣诞节限定 炸鸡味薯圈 55g ","imgUrl":"http://img01.taotaosou.cn/size/image16/M05/00/6B/CgAAQFZuceUIAAAAAAXuLbbfM4wAAPjRgAAAAAABe5F708.png","price":1480,"priceStr":"14.80","originalPrice":1800,"originalPriceStr":"18.00","salesVolume":1,"isNew":0,"isHot":1},{"productId":11491,"freight":700,"freightStr":"7.00","stock":0,"title":"单只装 /  美国 Twizzlers 多滋乐 扭扭糖（草莓味）","imgUrl":"http://img01.taotaosou.cn/size/image16/M01/00/6B/CgAAQ1ZucncIAAAAAAH_Q0yP9sUAAPjSQFRMF4AAf9b708.png","price":190,"priceStr":"1.90","originalPrice":250,"originalPriceStr":"2.50","salesVolume":16,"isNew":0,"isHot":1},{"productId":11495,"freight":700,"freightStr":"7.00","stock":16,"title":"美国进口 Nestor乐事多 蓝莓果干100g","imgUrl":"http://img.taotaosou.cn/size/image16/M08/00/76/CgAAQFZv5NMIAAAAAAVrvJsPO3MAAPniQNxdDoABWvU415.jpg","price":1990,"priceStr":"19.90","originalPrice":2985,"originalPriceStr":"29.85","salesVolume":2,"isNew":1,"isHot":0},{"productId":11496,"freight":700,"freightStr":"7.00","stock":29,"title":"马来西亚进口 大山NATURES  混合杂果仁 130g","imgUrl":"http://img01.taotaosou.cn/size/image16/M08/00/76/CgAAQFZv508IAAAAAASZnKzbN_UAAPniQOZaKIABJm0987.jpg","price":1990,"priceStr":"19.90","originalPrice":2985,"originalPriceStr":"29.85","salesVolume":1,"isNew":1,"isHot":0},{"productId":11498,"freight":700,"freightStr":"7.00","stock":9,"title":"日本进口  suguru's 芝士墨鱼烧45g","imgUrl":"http://img.taotaosou.cn/size/image16/M0B/00/76/CgAAQ1Zv7V0IAAAAAAQpfvB_w4UAAPnigEyMjQABCmW516.jpg","price":900,"priceStr":"9.00","originalPrice":1350,"originalPriceStr":"13.50","salesVolume":1,"isNew":0,"isHot":1},{"productId":11499,"freight":700,"freightStr":"7.00","stock":22,"title":"桃哈多Tohato蜡笔小新巧克力饼干","imgUrl":"http://img02.taotaosou.cn/size/image16/M04/00/76/CgAAQ1Zw-sMIAAAAAATbmT_aBu4AAPnmQAYSwQABNux343.png","price":990,"priceStr":"9.90","originalPrice":1380,"originalPriceStr":"13.80","salesVolume":2,"isNew":0,"isHot":1},{"productId":11500,"freight":700,"freightStr":"7.00","stock":5,"title":"泰国进口 拌多乐鳕鱼丝 烧烤味15g","imgUrl":"http://img03.taotaosou.cn/size/image16/M0C/00/B0/CgAAQFZzgawIAAAAAADg25vgstYAAP-MQAoxo0AAODz639.jpg","price":600,"priceStr":"6.00","originalPrice":900,"originalPriceStr":"9.00","salesVolume":0,"isNew":1,"isHot":0}]}
     */

    private int code;
    private String msg;
    /**
     * page : 0
     * pageSize : 11
     * itemCount : 99
     * pList : [{"productId":11483,"freight":700,"freightStr":"7.00","stock":1,"title":"日本进口 皮卡丘杯面 海鲜味38g","imgUrl":"http://img02.taotaosou.cn/size/image16/M09/00/7E/CgAAQFZyMZkIAAAAAAHysj_610wAAPqsAPv1a4AAfLK446.jpg","price":1790,"priceStr":"17.90","originalPrice":2680,"originalPriceStr":"26.80","salesVolume":4,"isNew":0,"isHot":1},{"productId":11488,"freight":700,"freightStr":"7.00","stock":7,"title":"费列罗 拉斐尔椰蓉扁桃仁糖果酥球  15粒装","imgUrl":"http://img03.taotaosou.cn/size/image16/M07/00/6B/CgAAQFZubuYIAAAAAATUauf-JUMAAPjLwBAv3oABNSC058.jpg","price":3300,"priceStr":"33.00","originalPrice":3900,"originalPriceStr":"39.00","salesVolume":2,"isNew":1,"isHot":0},{"productId":11490,"freight":700,"freightStr":"7.00","stock":0,"title":"日本 桃哈多 圣诞节限定 炸鸡味薯圈 55g ","imgUrl":"http://img01.taotaosou.cn/size/image16/M05/00/6B/CgAAQFZuceUIAAAAAAXuLbbfM4wAAPjRgAAAAAABe5F708.png","price":1480,"priceStr":"14.80","originalPrice":1800,"originalPriceStr":"18.00","salesVolume":1,"isNew":0,"isHot":1},{"productId":11491,"freight":700,"freightStr":"7.00","stock":0,"title":"单只装 /  美国 Twizzlers 多滋乐 扭扭糖（草莓味）","imgUrl":"http://img01.taotaosou.cn/size/image16/M01/00/6B/CgAAQ1ZucncIAAAAAAH_Q0yP9sUAAPjSQFRMF4AAf9b708.png","price":190,"priceStr":"1.90","originalPrice":250,"originalPriceStr":"2.50","salesVolume":16,"isNew":0,"isHot":1},{"productId":11495,"freight":700,"freightStr":"7.00","stock":16,"title":"美国进口 Nestor乐事多 蓝莓果干100g","imgUrl":"http://img.taotaosou.cn/size/image16/M08/00/76/CgAAQFZv5NMIAAAAAAVrvJsPO3MAAPniQNxdDoABWvU415.jpg","price":1990,"priceStr":"19.90","originalPrice":2985,"originalPriceStr":"29.85","salesVolume":2,"isNew":1,"isHot":0},{"productId":11496,"freight":700,"freightStr":"7.00","stock":29,"title":"马来西亚进口 大山NATURES  混合杂果仁 130g","imgUrl":"http://img01.taotaosou.cn/size/image16/M08/00/76/CgAAQFZv508IAAAAAASZnKzbN_UAAPniQOZaKIABJm0987.jpg","price":1990,"priceStr":"19.90","originalPrice":2985,"originalPriceStr":"29.85","salesVolume":1,"isNew":1,"isHot":0},{"productId":11498,"freight":700,"freightStr":"7.00","stock":9,"title":"日本进口  suguru's 芝士墨鱼烧45g","imgUrl":"http://img.taotaosou.cn/size/image16/M0B/00/76/CgAAQ1Zv7V0IAAAAAAQpfvB_w4UAAPnigEyMjQABCmW516.jpg","price":900,"priceStr":"9.00","originalPrice":1350,"originalPriceStr":"13.50","salesVolume":1,"isNew":0,"isHot":1},{"productId":11499,"freight":700,"freightStr":"7.00","stock":22,"title":"桃哈多Tohato蜡笔小新巧克力饼干","imgUrl":"http://img02.taotaosou.cn/size/image16/M04/00/76/CgAAQ1Zw-sMIAAAAAATbmT_aBu4AAPnmQAYSwQABNux343.png","price":990,"priceStr":"9.90","originalPrice":1380,"originalPriceStr":"13.80","salesVolume":2,"isNew":0,"isHot":1},{"productId":11500,"freight":700,"freightStr":"7.00","stock":5,"title":"泰国进口 拌多乐鳕鱼丝 烧烤味15g","imgUrl":"http://img03.taotaosou.cn/size/image16/M0C/00/B0/CgAAQFZzgawIAAAAAADg25vgstYAAP-MQAoxo0AAODz639.jpg","price":600,"priceStr":"6.00","originalPrice":900,"originalPriceStr":"9.00","salesVolume":0,"isNew":1,"isHot":0}]
     */

    private DataEntity data;

    public void setCode(int code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public DataEntity getData() {
        return data;
    }

    public static class DataEntity {
        private int page;
        private int pageSize;
        private int itemCount;
        /**
         * productId : 11483
         * freight : 700
         * freightStr : 7.00
         * stock : 1
         * title : 日本进口 皮卡丘杯面 海鲜味38g
         * imgUrl : http://img02.taotaosou.cn/size/image16/M09/00/7E/CgAAQFZyMZkIAAAAAAHysj_610wAAPqsAPv1a4AAfLK446.jpg
         * price : 1790
         * priceStr : 17.90
         * originalPrice : 2680
         * originalPriceStr : 26.80
         * salesVolume : 4
         * isNew : 0
         * isHot : 1
         */

        private List<PListEntity> pList;

        public void setPage(int page) {
            this.page = page;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public void setItemCount(int itemCount) {
            this.itemCount = itemCount;
        }

        public void setPList(List<PListEntity> pList) {
            this.pList = pList;
        }

        public int getPage() {
            return page;
        }

        public int getPageSize() {
            return pageSize;
        }

        public int getItemCount() {
            return itemCount;
        }

        public List<PListEntity> getPList() {
            return pList;
        }

        public static class PListEntity {
            private int productId;
            private int freight;
            private String freightStr;
            private int stock;
            private String title;
            private String imgUrl;
            private int price;
            private String priceStr;
            private int originalPrice;
            private String originalPriceStr;
            private int salesVolume;
            private int isNew;
            private int isHot;

            public void setProductId(int productId) {
                this.productId = productId;
            }

            public void setFreight(int freight) {
                this.freight = freight;
            }

            public void setFreightStr(String freightStr) {
                this.freightStr = freightStr;
            }

            public void setStock(int stock) {
                this.stock = stock;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public void setImgUrl(String imgUrl) {
                this.imgUrl = imgUrl;
            }

            public void setPrice(int price) {
                this.price = price;
            }

            public void setPriceStr(String priceStr) {
                this.priceStr = priceStr;
            }

            public void setOriginalPrice(int originalPrice) {
                this.originalPrice = originalPrice;
            }

            public void setOriginalPriceStr(String originalPriceStr) {
                this.originalPriceStr = originalPriceStr;
            }

            public void setSalesVolume(int salesVolume) {
                this.salesVolume = salesVolume;
            }

            public void setIsNew(int isNew) {
                this.isNew = isNew;
            }

            public void setIsHot(int isHot) {
                this.isHot = isHot;
            }

            public int getProductId() {
                return productId;
            }

            public int getFreight() {
                return freight;
            }

            public String getFreightStr() {
                return freightStr;
            }

            public int getStock() {
                return stock;
            }

            public String getTitle() {
                return title;
            }

            public String getImgUrl() {
                return imgUrl;
            }

            public int getPrice() {
                return price;
            }

            public String getPriceStr() {
                return priceStr;
            }

            public int getOriginalPrice() {
                return originalPrice;
            }

            public String getOriginalPriceStr() {
                return originalPriceStr;
            }

            public int getSalesVolume() {
                return salesVolume;
            }

            public int getIsNew() {
                return isNew;
            }

            public int getIsHot() {
                return isHot;
            }
        }
    }
}
